package com.ch6;

public final class NettyConstant {
	public static final String REMOTEIP = "127.0.0.1";
	public static final int PORT = 8080;
	public static final int LOCAL_PORT = 12088;
	public static final String LOCALIP = "127.0.0.1";

	public static enum MessageType {

		SERVICE_REQ((byte) 0), SERVICE_RESP((byte) 1), ONE_WAY((byte) 2), LOGIN_REQ(
				(byte) 3), LOGIN_RESP((byte) 4), HEARTBEAT_REQ((byte) 5), HEARTBEAT_RESP(
				(byte) 6);

		private byte value;

		private MessageType(byte value) {
			this.value = value;
		}

		public byte value() {
			return this.value;
		}
	}
}